package com.giantlizard.cloud.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.giantlizard.cloud.system.entity.SysRole;
import com.giantlizard.cloud.system.mapper.SysRoleMapper;
import com.giantlizard.cloud.system.service.SysRoleService;
import com.giantlizard.cloud.system.vo.SysRoleVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统-角色 服务实现类
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {
    @Override
    public List<SysRoleVo> selectRolesByUserId(String userId) {
        return this.baseMapper.selectRolesByUserId(userId);
    }
}